import type { App } from 'vue'
import * as components from './components'
// import * as ElementPlusIconsVue from '@element-plus/icons-vue';

const install = function (app: App) {
  Object.entries(components).forEach(([key, value]) => {
    app.component(key, value)
  })

  // for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  //   app.component(`ElIcon${key}`, component);
  // }
}

export default install
export * from './components'
